package model;
import model.interfaces.Node;
import model.interfaces.Rule;


public class LeafNode extends Node {
	private Rule rule;
	
	public LeafNode(Rule rule) {
		this.rule =  rule;
	}
	
	@Override
	public boolean verify() {
		return rule.verify();
	}
	
	public Rule getRule(){
		return this.rule;
	}

	@Override
	public boolean hasChildren() {
		return false;
	}

}
